package com.achievo.know.application;

import java.util.List;
import java.util.Set;

import com.achievo.know.domain.Category;
import com.achievo.know.domain.CategoryContent;
import com.achievo.know.domain.User;
import com.achievo.know.pojo.JsonCategory;


public interface CategoryApplication {

	public String getJson(List<Long> list);

	public void add(Category c);

	public Category get(Long id);
	
	public List<Category> getRoots();

	public void deleteBatch(String[] idA);

	public void save(Category cate);

	public void changePos(String id, String toId, String type);

	public String getJsonWithRoot(List<Long> list);

	public List<Long> listAllIds(Long cateId);

	public List<JsonCategory> getCates(List<Long> cateIds);

	public Category getParent(Category subCate);

	public CategoryContent getDesc(Long id);

	public void saveDesc(CategoryContent temp);

	public Set<Category> getUserCates(User loginUser);

}
